<div class="row conteinerMinSize">
	<div class="col-xs-2 buttonWide">
		<a href="<?php echo Config::get('URI'); ?>logout/" class="btn btn-danger btn-lg boxShadow adminHeader" role="button">излез</a>
	</div>
	<div class="col-xs-2 col-md-offset-3 buttonWide">
		<a href="<?php echo Config::get('URI'); ?>recipes/" class="btn btn-warning btn-lg boxShadow adminHeader" role="button">рецепти</a>
	</div>
	<div class="col-xs-2 col-md-offset-3 buttonWide">
		<a href="<?php echo Config::get('URI'); ?>" class="btn btn-success btn-lg boxShadow adminHeader" role="button">старт</a>
	</div>
</div>

<!-- Recipe ADDING form-->
<div class="row conteinerMinSize">
	
    <form method="POST" action="" role="form">
        <div class="col-xs-4 bg-success pull-left boxShadow">
            <h2 class="text-center">Продукти:</h2>
            <div class="col-xs-10 adminProductList">
				
            <?php foreach($db_Products as $product): ?>
                <label>
                    <input type="checkbox" name="<?php echo $product->id; ?>"> <?php echo $product->name; ?>
				</label>
				<br />
            <?php endforeach; ?>
				
				<br />
			</div>
        </div>

        <div class="col-xs-8 pull-right">
			<div class="col-xs-12 bg-danger boxShadow">
				<h2 class="text-center">Добави рецепта:</h2>
				
				<?php if(isset($_SESSION['addSuccess'])): ?>
					<div class="col-xs-4 col-xs-offset-4 alert alert-success text-center">Recipe Saved Successfully!</div>
				<?php unset($_SESSION['addSuccess']); endif; ?>
				
				<div class="col-xs-12 bottomTopSpace">
					<input type="text" name="title" class="form-control col-xs-12" placeholder="Заглавие" required autofocus autocomplete="off"/>
				</div>
				<div class="col-xs-12">
					<textarea id="recipe" name="recipe">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>
				</div>
				<div class="col-xs-12 bottomTopSpace">
					<button type="submit" class="btn btn-info col-xs-4 col-xs-offset-4  boxShadow">Добави!</button>
				</div>
			</div>
		</div>
    </form>
	
</div><!-- /Recipe ADDING form-->


<!-- Product ADDING form-->
<div class="row conteinerMinSize topOffset bottomOffset">
    <form method="POST" action="<?php echo Config::get('URI'); ?>add-product/" role="form">
		<div class="col-xs-4 pull-left">
			<div class="col-xs-12 bg-info boxShadow">
				<h2 class="text-center">Добави продукт:</h2>
				
				<?php if(isset($_SESSION['addProductSuccess'])): ?>
				<div class="col-xs-12 alert alert-success text-center">Product Saved Successfully!</div>
				<?php unset($_SESSION['addProductSuccess']); endif; ?>
				
				<div class="col-xs-12 bottomTopSpace">
					<input type="text" name="product" class="form-control col-xs-12" placeholder="Продукт" required autocomplete="off"/>
				</div>
				<div class="col-xs-12 bottomTopSpace">
					<button type="submit" class="btn btn-info col-xs-4 col-xs-offset-4  boxShadow">Добави!</button>
				</div>
			</div>
		</div>
	</form>
</div><!-- /Product ADDING form-->